﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.DbEntity
{
    /// <summary>
    /// 网址表
    /// </summary>
    public class WebSite
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Comment("主键")]
        public Guid Id { get; set; }

        /// <summary>
        /// 网站名称
        /// </summary>
        [Comment("网站名称"), MaxLength(50)]
        public string? SiteName { get; set; }

        /// <summary>
        /// 网站简介
        /// </summary>
        [Comment("网站简介"), MaxLength(255)]
        public string? SiteIntro { get; set; }

        /// <summary>
        /// 网站链接
        /// </summary>
        [Comment("网站链接"), MaxLength(255)]
        public string? SiteUrl { get; set; }

        /// <summary>
        /// 网站图标
        /// </summary>
        [Comment("网站图标"), MaxLength(255)]
        public string? SiteIcon { get; set; }

        /// <summary>
        /// 类型 会根据这个字段进行分类
        /// </summary>
        [Comment("类型 会根据这个字段进行分类"), MaxLength(50)]
        public string? SiteType { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        [Comment("是否可用")]
        public bool Enable { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Comment("是否删除")]
        public bool IsDelete { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Comment("创建人")]
        public Guid? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Comment("修改人")]
        public Guid? UpdatedBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Comment("修改时间")]
        public DateTime? UpdatedTime { get; set; }

    }
}
